projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2815496
)
* xselect.c (Fx_get_atom_name): Avoid need for strlen.
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 21 Jun 2011 02:16:54 +0000
(19:16 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 21 Jun 2011 02:16:54 +0000
(19:16 -0700)
src/ChangeLog
patch
|
blob
|
history
src/xselect.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index b388b1e3ea7731c573a4123af019dbb366b6e502..0c7cac342d97e4bca9b48523e58b75c1338efb01 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,5
+1,7
@@
2011-06-21 Paul Eggert <eggert@cs.ucla.edu>
+ * xselect.c (Fx_get_atom_name): Avoid need for strlen.
+
* xrdb.c: Don't assume strlen fits in int; avoid some strlens.
* xrdb.c (magic_file_p, search_magic_path):
Omit last arg SUFFIX; it was always 0. All callers changed.
diff --git
a/src/xselect.c
b/src/xselect.c
index 5b01fc22a42e99b7fb4d5d364ed2ddb121f8d512..7f4e0b40f62c4e0f992ae42b01bf1c5c14610ee4 100644
(file)
--- a/
src/xselect.c
+++ b/
src/xselect.c
@@
-2361,7
+2361,7
@@
If the value is 0 or the atom is not known, return the empty string. */)
x_uncatch_errors ();
if (!had_errors)
- ret =
make_string (name, strlen (name)
);
+ ret =
build_string (name
);
if (atom && name) XFree (name);
if (NILP (ret)) ret = empty_unibyte_string;